﻿@model IEnumerable<PNProject.EF.Product>
@{
    ViewBag.Title = "Products";
    Layout = "~/Views/Shared/_Layout1.cshtml";
}


<div class="boxproducts">
    @foreach (var item in @Model)
    {
        var defaultImage = item.Avatar;
        <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="@Url.Action("Index","ProductDetails",new {CatelogId = @item.CategoryID,id = @item.ProductID})">
                                <img src="@defaultImage" alt=""/>
                            </a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="@Url.Action("Index","ProductDetails",new {CatelogId = @item.CategoryID,id = @item.ProductID})">@item.Name</a>
    </div>
    }
    @*<div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>
    <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>
    <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>
    <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>
    <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>
    <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>
    <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>
    <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>
    <div class="boxpro">
        <div class="picpro-1">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td class="pic_1">
                            <a href="#">
                                <img src="@Url.Content("~/Images/pro-1.jpg")" alt=""/></a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <a href="#">Hệ thống quản lý trạm kinh doanh xăng dầu</a>
    </div>*@
</div>